class Api::AccountController < ApplicationController
  before_action :doorkeeper_authorize!

  def current
    @current_user = current_resource_owner
    render json: @current_user
  end

  def all
    render json: User.all
  end

  def extra_info
  end

  def current_resource_owner
    User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
  end
end
